package jwlee.testthread;

public class CallerGetter {
	public void call() {
		getCallTrace();
	}

	public void getCallTrace() {
		StackTraceElement stack[] = Thread.currentThread().getStackTrace();
		for (StackTraceElement ste : stack) {
			System.out.println(ste.getFileName() + " : " + ste.getClassName()
					+ "." + ste.getMethodName());
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new CallerGetter().call();

	}
}
